﻿package  {
	import flash.display.MovieClip;
	
	public class Cell extends MovieClip{
		private var xIndex:uint;
		private var yIndex:uint;
		
		private const cellWidth = 30;
		private const cellScale = 0.296;// 20/101.3
		
		public var solidFlag:Boolean = false;
		
		public function Cell(x:int, y:int) {
			this.gotoAndStop(1);
			
			this.scaleX = cellScale;
			this.scaleY = cellScale;
			
			this.xIndex = x;
			this.yIndex = y;
		}
		
		public function getXIndex():uint{
			return this.xIndex;
		}
		
		public function getYIndex():uint{
			return this.yIndex;
		}
		
		public function getIndex():uint{
			return this.currentFrame;
		}
	}
	
}
